import Axios from "axios";

const axios = Axios.create({
  baseURL: "http://114.132.232.133:8080",
  timeout: 2000
})

axios.interceptors.request.use(config => {
  // Do something before request is sent
  return config;
}, error => {
  // Do something with request error
  return Promise.reject(error);
});

axios.interceptors.response.use(response => {
  // Do something before response is sent
  return response;
}, error => {
  // Do something with response error
  return Promise.reject(error);
});


export default axios